package com.longrise.android.byjk.plugins.aboutme;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.LinearLayout;

import com.longrise.android.byjk.R;
import com.longrise.common.base.BaseActivity;

/**
 * Created by callxkj on 16/6/21.
 * 分享保宝的页面 邀请好友
 */
public class ShareAPPLFView extends BaseActivity implements View.OnClickListener {

    private LinearLayout mLLqqzone;
    private LinearLayout mLLwechat;
    private LinearLayout mLLpengyouquan;
    private LinearLayout mLLqq;
    private Toolbar mToolbar;


    @Override
    public int getContentViewId(@Nullable Bundle savedInstanceState) {
        return R.layout.lfview_shareapp;
    }

    @Override
    public void initView() {
        mToolbar = (Toolbar) findViewById(R.id.byjk_toolbar);
        mToolbar.setTitle(getResources().getString(R.string.fxbaobao));
        setSupportActionBar(mToolbar);
        mLLqqzone = (LinearLayout) findViewById(R.id.shareapp_qzone_ll);
        mLLwechat = (LinearLayout) findViewById(R.id.shareapp_wechat_ll);
        mLLpengyouquan = (LinearLayout) findViewById(R.id.shareapp_pengyouquan_ll);
        mLLqq = (LinearLayout) findViewById(R.id.shareapp_qq_ll);
        initEvent();
    }

    private void initEvent() {
        mLLqqzone.setOnClickListener(this);
        mLLwechat.setOnClickListener(this);
        mLLpengyouquan.setOnClickListener(this);
        mLLqq.setOnClickListener(this);
        mToolbar.setNavigationOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }


    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.shareapp_qzone_ll:
               // share(1);
                break;
            case R.id.shareapp_wechat_ll:
                //share(2);
                break;
            case R.id.shareapp_pengyouquan_ll:
               // share(3);
                break;
            case R.id.shareapp_qq_ll:
               // share(4);
                break;
        }
    }




}
